package com.tools.wenjuanxing.strart;

import com.tools.wenjuanxing.service.auto_service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;



@Service
public class mainrun {
    @Autowired
    com.tools.wenjuanxing.service.auto_service auto_service;

    @Scheduled(fixedDelay = 9999999)
    public void run() throws Exception{
        for (int i = 1; i <= 300; i++) {
            auto_service.auto_wenjuanxing();
            System.out.println("第"+i+"次填写完成！！！");
        }
    }
}
